#ifndef _POINTER_CHECK_H_
#define _POINTER_CHECK_H_


#include "../Helix.h"
#include "../HObject.h"

namespace helix
{

	class MY_CLASS PtrCheck
	{
	public:
		static bool isValid(HObject *obj);			//checks to see if an object has been deleted already
		static bool safeDelete(HObject *obj,const char *objName);		//safely deletes an object (does not crash if it has already been deleted
		static bool safeDelete(HObject *obj,const char *objName,bool needsDeletion); //same as above, but only prints the message if it is needed.
	};

}

#endif